<!DOCTYPE html >
<head>
    <meta charset="UTF-8" />
    <title>微信扫码登录</title>
    <!--CDN 方式引入VUE3-->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <!--CDN 方式引入axios-->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app"> <img :src="qrCode" @click="getQrCode()"/></div>

</body>
<script>
    const appConfig = {
        data() {
            return {
                qrCode: "",
            };
        },
        method:{
            getQrCode(){
                let url="http://j9nbvi.natappfree.cc/weChat/qrCode";
                axios.get(url).then(res=>{
                    this.qrCode = res.data;
                })
            },
        },
        created(){

        }

    };
    const app = Vue.createApp(appConfig);
    app.mount("#app");
</script>
</html>